<?php
	require 'config.php';
	$id = $_POST['id'];
	$content = $_POST['content'];
	$time = $_POST['time'];


	mysql_query("UPDATE  advertisement SET id='$id',content='$content',date='$time' WHERE id='$id'") or die('SQL 错误！');

	echo mysql_affected_rows();
	
	mysql_close();
?>